package com.basker.pisces.core.resource.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.stereotype.Component;

import com.basker.pisces.core.resource.IResourceLoader;

/**
 * 资源加载类需要打上这个注解
 *
 * @author hangwen
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.TYPE})
@Component
public @interface ResouceLoader {
    /**
     * @return
     * @see IResourceLoader#getLocationPatterns()
     */
    String[] locationPatterns() default {};

    /**
     * @return
     * @see IResourceLoader#getPriority()
     */
    int priority() default 0;
}
